package cn.doit.scala.day04

/**
 * @DATE 2021/12/28/9:33
 * @Author MDK
 * @Version 2021.2.2
 * */
object C02_Span {
  def main(args: Array[String]): Unit = {
    //span函数 将数据分成两组 满足条件则判断直到不满足条件终止
    val list= List(1,2,3,4,5,6,1,2,3)
    val res = list.span(_ < 4)
    println(res._1)
  }
}
